#pragma once
#include "ErrorDetect.h"

class Texture
{
private:
	unsigned int m_RendererID;
	std::string m_FilePath;
	unsigned char* m_LocalBuffer;
	int m_Width, m_Height, m_BPP;
public:
	Texture(const std::string& path);
	~Texture();
	// 现在一般的移动设备大概有8个slot左右，PC设备一般有32个slot左右,取决于具体的机器
	void Bind(unsigned int slot = 0)const;
	void Unbind()const;

	inline int GetWidth() const { return m_Width; }
	inline int GetHeight() const { return m_Height; }
	
};

